package com.unicom.priceboard.data.vo;

/**
 * @author Admin
 *
 */
public class TotalMarketElement {
	private Integer setIndex;	
	private Integer totalTrade;	
	private Double totalShare;	
	private Double totalValue;	
	private Double upVolume;	
	private Double noChangeVolume;	
	private Double downVolume;	
	private Short advances;	
	private Short noChange;	
	private Short declines;	
	private Integer set50Index;	
	private Character marketId;	
	private Character filler;	
	private String time;//String (8)	
	/**
	 * @return the advances
	 */
	public Short getAdvances() {
		return advances;
	}
	/**
	 * @param advances the advances to set
	 */
	public void setAdvances(Short advances) {
		this.advances = advances;
	}
	/**
	 * @return the declines
	 */
	public Short getDeclines() {
		return declines;
	}
	/**
	 * @param declines the declines to set
	 */
	public void setDeclines(Short declines) {
		this.declines = declines;
	}
	/**
	 * @return the downVolume
	 */
	public Double getDownVolume() {
		return downVolume;
	}
	/**
	 * @param downVolume the downVolume to set
	 */
	public void setDownVolume(Double downVolume) {
		this.downVolume = downVolume;
	}
	/**
	 * @return the filler
	 */
	public Character getFiller() {
		return filler;
	}
	/**
	 * @param filler the filler to set
	 */
	public void setFiller(Character filler) {
		this.filler = filler;
	}
	/**
	 * @return the marketId
	 */
	public Character getMarketId() {
		return marketId;
	}
	/**
	 * @param marketId the marketId to set
	 */
	public void setMarketId(Character marketId) {
		this.marketId = marketId;
	}
	/**
	 * @return the noChange
	 */
	public Short getNoChange() {
		return noChange;
	}
	/**
	 * @param noChange the noChange to set
	 */
	public void setNoChange(Short noChange) {
		this.noChange = noChange;
	}
	/**
	 * @return the noChangeVolume
	 */
	public Double getNoChangeVolume() {
		return noChangeVolume;
	}
	/**
	 * @param noChangeVolume the noChangeVolume to set
	 */
	public void setNoChangeVolume(Double noChangeVolume) {
		this.noChangeVolume = noChangeVolume;
	}
	/**
	 * @return the set50Index
	 */
	public Integer getSet50Index() {
		return set50Index;
	}
	/**
	 * @param set50Index the set50Index to set
	 */
	public void setSet50Index(Integer set50Index) {
		this.set50Index = set50Index;
	}
	/**
	 * @return the setIndex
	 */
	public Integer getSetIndex() {
		return setIndex;
	}
	/**
	 * @param setIndex the setIndex to set
	 */
	public void setSetIndex(Integer setIndex) {
		this.setIndex = setIndex;
	}
	/**
	 * @return the time
	 */
	public String getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(String time) {
		this.time = time;
	}
	/**
	 * @return the totalShare
	 */
	public Double getTotalShare() {
		return totalShare;
	}
	/**
	 * @param totalshare the totalShare to set
	 */
	public void setTotalShare(Double totalShare) {
		this.totalShare = totalShare;
	}
	/**
	 * @return the totalTrade
	 */
	public Integer getTotalTrade() {
		return totalTrade;
	}
	/**
	 * @param totalTrade the totalTrade to set
	 */
	public void setTotalTrade(Integer totalTrade) {
		this.totalTrade = totalTrade;
	}
	/**
	 * @return the totalValue
	 */
	public Double getTotalValue() {
		return totalValue;
	}
	/**
	 * @param totalValue the totalValue to set
	 */
	public void setTotalValue(Double totalValue) {
		this.totalValue = totalValue;
	}
	/**
	 * @return the upVolume
	 */
	public Double getUpVolume() {
		return upVolume;
	}
	/**
	 * @param upVolume the upVolume to set
	 */
	public void setUpVolume(Double upVolume) {
		this.upVolume = upVolume;
	}
	
	public boolean equals(Object obj) {
		if(!this.getClass().isInstance(obj))
			return false;
		else{
			TotalMarketElement compareObject = (TotalMarketElement)obj;
			if(!setIndex.equals(compareObject.getSetIndex())) {
				return false;
			}else if (!totalShare.equals(compareObject.getTotalShare())) {
				return false;
			}else if(!totalTrade.equals(compareObject.getTotalTrade())) {
				return false;
			}else if(!totalValue.equals(compareObject.getTotalValue())){
				return false;
			}
			return true;
		}
	}
	
}
